const path = require('path');
const merge = require('webpack-merge'); // 用于合并webpack配置 webpack-merge 版本 4.x
// 5.x 及以上 const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base')

const config = {
    entry: './src/client/index.js',
    output: {
        path: path.join(__dirname, 'public'),
        filename: "bundle.js"
    },
}

module.exports = merge(baseConfig, config)
